package com.lecture.java8.excel.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author luyn
 * @description
 * @Date 2020/11/5 14:06
 * @Version 1.0
 */
@Data
//@Builder
public class DemoData {

    @ExcelProperty("主键")
    private long id;

    @ExcelProperty("字符串标题")
    @ColumnWidth(40)
    private String string;
    @ExcelProperty("日期标题")
    private Date date;
    @ExcelProperty("数字标题")
    private Double doubleData;
    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;

    private String str;

}
